package com.coocaa.ops.admin.v1.panel;

import com.coocaa.ops.admin.base.annotation.Auth;
import com.coocaa.ops.admin.base.annotation.Config;

import com.coocaa.ops.admin.base.controller.MgrBaseController;
import com.coocaa.ops.common.core.base.enums.AuthEnum;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * 前端重构，新控制器，功能板块
 * @author tangminghong
 * @date 2019.5.7
 */
@RestController
@Config(menuToken = "markPanel")
@RequestMapping("/v1/markPanel")
public class MarkPanelController extends MgrBaseController {
    /**
     * 获取菜单运行权限列表
     *
     * @param request
     * @param
     * @return
     */
    @Auth(verifyAuthority = true, authorityType = AuthEnum.BROWSER)
    @RequestMapping(value = "/getMenuInfo",method = RequestMethod.GET, produces = "text/html;charset=UTF-8")
    @ResponseBody
    public String getMenuInfo(HttpServletRequest request) {
        Map result = getMenuInfo(this.getClass(), request);
        return render2Json(result);
    }
}
